import {
	createApp
} from 'vue';
import App from './App.vue';
import {
	createStore
} from 'vuex';
import router from './router';
import ElementPlus from 'element-plus';
import 'element-plus/dist/index.css';
import zhCn from 'element-plus/dist/locale/zh-cn.mjs'
//npm install vuex@next --save
//npm install vue-router
//npm install axios
//npm install element-plus --save
router.beforeEach(function(to, from, next) {
	console.info(to.path);
	// let token=localStorage.getItem("token");
	// if(token==null){
	// 	router.push("/login");
	// }
	//放行
	next();
});
const store = createStore({});

createApp(App)
	.use(ElementPlus, {
		locale: zhCn,
	})
	.use(store)
	.use(router)
	.mount('#app');